package com.hz.service.impl;

import com.hz.mapper.UserMapper;
import com.hz.pojo.File;
import com.hz.pojo.User;
import com.hz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceimpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public void modify(User user) {
        userMapper.modify(user);
    }

    @Override
    public User login(User user) {
        return userMapper.getByUsernameAndPassword(user);
    }

    @Override
    public void feedback(File file) {
        userMapper.feedback(file);
    }
}
